<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGameDataTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_data', function (Blueprint $table) {
            $table->increments('id');
            $table->string('type');
            $table->string('server_name');
            $table->string('server_ip');
            $table->dateTime('open_time');
            $table->string('network');
            $table->string('introduction');
            $table->string('qq');
            $table->string('url');
            $table->boolean('audit');
            $table->integer('count');
            $table->decimal('consume',8,2);
            $table->string('publisher');
            $table->dateTime('release_date');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('game_data');
    }
}
